package com.mce.nebula.entity;

import com.mce.nebula.common.BaseEntity;
import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 公告实体，对应Python的Announcement模型
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Entity
@Table(name = "announcement")
public class Announcement extends BaseEntity {
    
    @Column(name = "announcement_id", length = 32, nullable = false)
    private String announcementId;
    
    @Column(name = "content", length = 1000, nullable = false)
    private String content;
    
    @Column(name = "a_tag", length = 256)
    private String aTag;
    
    @Column(name = "a_tag_url", length = 1024)
    private String aTagUrl;
    
    @Column(name = "type", length = 32)
    private String type = "all";
    
    @Column(name = "active", nullable = false)
    private Boolean active = true;
    
    @Column(name = "title", length = 64, nullable = false)
    private String title = "title";
    
    @Column(name = "level", length = 32, nullable = false)
    private String level = "low";
}